package cn.shiwei.pet.mapper;

import cn.shiwei.basic.mapper.BaseMapper;
import cn.shiwei.pet.domain.Pet;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface PetMapper extends BaseMapper<Pet> {
    void onsale(Map<String, Object> params);

    void offSale(Map<String, Object> params);

    Pet loadByIdDetail(Long id);

    void batchPutStatus(@Param("timeType") String time, @Param("date") Date date, @Param("state") Integer saleStatus, @Param("ids") List<Long> ids);

    Pet loadPetAndDetailByIDState(@Param("id")Long id,@Param("state") Integer state);

    List<Pet> patchLoad(@Param("ids")List<Long> pId, @Param("state") Integer state);
}
